package model;

/**
 *
 * @author vladson
 */
public class Terreno extends Propriedade {

    private int[] precoAluguel = new int[6];
    private int construcoes = 0;
    private int precoConstrucao;

    public Terreno(String nome, int precoCompra, int precoHipoteca,
            String grupoCor, int[] precoAluguel, int precoConstrucao){
            super(nome, precoCompra, precoHipoteca, grupoCor);
            this.precoAluguel = precoAluguel;
            this.precoConstrucao = precoConstrucao;
    }

    public void construir(){
        construcoes++;
    }

    public void venderConstrucao(){
        construcoes--;
    }

    public int getPrecoAluguel(){
        return precoAluguel[construcoes];
    }

    public int getPrecoConstrucao(){
        return precoConstrucao;
    }

    
}
